import random
import datastoreWrapper

class Question:
  @staticmethod
  def getQuestionText(cat, param=''):
    if cat == 'publication':
    	return 'Which of these people have a publication?'
    elif cat == 'patent':
    	return 'Which of these people has a patent?'
    #elif cat == 'num-connections':
    #	return 'Which of these people is the most connected?'
    #elif cat == 'oldest':
    #	return 'Which of these people is the oldest?'
    #elif cat == 'youngest':
    #	return 'Which of these people is the youngest?'
    elif cat == 'first-name':
      return 'Whose first name is %s?' % (param, )
    elif cat == 'last-name':
    	return 'Whose last name is %s?' % (param, )
    #elif cat == 'company':
    #	return 'Which of these people works at %s?' % (param, )
    #elif cat == 'twitter':
    #	return 'Who\'s twiter handle is %s?' % (param, )
    #elif cat == 'school':
    #	return 'Who graduated from %s?' % (param, )
    #elif cat == 'language':
    #	return 'Of these people, who speaks %s?' % (param, )
    #elif cat == 'state':
    #	return 'One of these people live in %s, who is it?' % (param, )
    #elif cat == 'specPatent':
    #	return 'Who has patented %s and is likely very rich?' % (param, )
    #elif cat == 'specSkill':
    #	return 'Who is as proficient in %s as we are in programming?' % (param, )
    #elif cat = 'certification':
    #	return 'Which of these people is certified in %s?' % (param, )
    else:
      return 'CATEGORY ERROR'

  @staticmethod	
  def choosePeople(cat, memberId):
    if cat == 'publication':
    	return datastoreWrapper.getPublicationQuery(memberId)
    elif cat == 'patent':
    	return datastoreWrapper.getPatentsQuery(memberId)
    elif cat == 'first-name':
      return datastoreWrapper.getFirstNameQuery(memberId)
    elif cat == 'last-name':
    	return datastoreWrapper.getLastNameQuery(memberId)
    #elif cat == 'company':
    #	return datastoreWrapper.getCompanyQuery(memberId)
    #elif cat == 'twitter':
    #	return datastoreWrapper.getTwitterQuery(memberId)
    #elif cat == 'school':
    #	return datastoreWrapper.getSchoolQuery(memberId)
    #elif cat == 'language':
    #	return datastoreWrapper.getLanguageQuery(memberId)
    else:
      return 'CATEGORY ERROR'